export default {
	set_scroll(s, scroll) {
		s.scroll = scroll
	},
	change_collapse(s) {
		s.collapse = !s.collapse
	},
	set_admin(s, admin) {
		s.admin = admin
		if (admin == null) {
			// window.localStorage.removeItem("admin")
		} else {
			window.localStorage.setItem("admin", JSON.stringify(admin))
		}
	},
	remove_admin(s) {
		s.admin = null
		window.localStorage.removeItem("admin")
	},
	set_tagList(s, tagList) {
		s.tagList = tagList
	}
}
